
/* First created by JCasGen Mon Jun 22 01:01:49 UYT 2009 */
package org.idtem.component.freeling;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;

/** 
 * Updated by JCasGen Mon Nov 09 23:03:54 UYST 2009
 * @generated */
public class Pronombre_Type extends Freeling2_Type {
  /** @generated */
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (Pronombre_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = Pronombre_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new Pronombre(addr, Pronombre_Type.this);
  			   Pronombre_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new Pronombre(addr, Pronombre_Type.this);
  	  }
    };
  /** @generated */
  public final static int typeIndexID = Pronombre.typeIndexID;
  /** @generated 
     @modifiable */
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.idtem.component.freeling.Pronombre");
 
  /** @generated */
  final Feature casFeat_Tipo;
  /** @generated */
  final int     casFeatCode_Tipo;
  /** @generated */ 
  public String getTipo(int addr) {
        if (featOkTst && casFeat_Tipo == null)
      jcas.throwFeatMissing("Tipo", "org.idtem.component.freeling.Pronombre");
    return ll_cas.ll_getStringValue(addr, casFeatCode_Tipo);
  }
  /** @generated */    
  public void setTipo(int addr, String v) {
        if (featOkTst && casFeat_Tipo == null)
      jcas.throwFeatMissing("Tipo", "org.idtem.component.freeling.Pronombre");
    ll_cas.ll_setStringValue(addr, casFeatCode_Tipo, v);}
    
  
 
  /** @generated */
  final Feature casFeat_Referente;
  /** @generated */
  final int     casFeatCode_Referente;
  /** @generated */ 
  public int getReferente(int addr) {
        if (featOkTst && casFeat_Referente == null)
      jcas.throwFeatMissing("Referente", "org.idtem.component.freeling.Pronombre");
    return ll_cas.ll_getRefValue(addr, casFeatCode_Referente);
  }
  /** @generated */    
  public void setReferente(int addr, int v) {
        if (featOkTst && casFeat_Referente == null)
      jcas.throwFeatMissing("Referente", "org.idtem.component.freeling.Pronombre");
    ll_cas.ll_setRefValue(addr, casFeatCode_Referente, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public Pronombre_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_Tipo = jcas.getRequiredFeatureDE(casType, "Tipo", "uima.cas.String", featOkTst);
    casFeatCode_Tipo  = (null == casFeat_Tipo) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Tipo).getCode();

 
    casFeat_Referente = jcas.getRequiredFeatureDE(casType, "Referente", "org.idtem.component.freeling.Nombre", featOkTst);
    casFeatCode_Referente  = (null == casFeat_Referente) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_Referente).getCode();

  }
}



    